package com.platform.core.security.auth;

import com.platform.core.service.SysUserService;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * Description: 登录成功事件
 *
 * @author sunzhubin.zh created on 2019/9/30
 */
public class LoginSuccessEvent extends ApplicationEvent {

    /**
     *
     */
    private static final long serialVersionUID = 1L;
    @Getter
    private final SysUserService sysUserService;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source         the object on which the event initially occurred (never {@code null})
     * @param sysUserService 用户业务
     */
    public LoginSuccessEvent(Object source, SysUserService sysUserService) {
        super(source);
        this.sysUserService = sysUserService;
    }
}
